package com.ios.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Room {
    private Integer id;

    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "自习室名称")
    private String name;

    @Excel(name = "封面")
    private String cover;

    @Excel(name = "地点")
    private String location;

    @Excel(name = "介绍")
    private String introduction;
    /**
     * 是否付费（0：免费，1：付费）
     */
    @Excel(name = "是否付费")
    private Integer isPaid;

    /**
     * 自习室价格（元）
     */
    @Excel(name = "价格")
    private BigDecimal price;
    private Long creatorId;
}